using System;
using System.Collections.Generic;
using System.Text;
using SqlSugar;

namespace NP.BPMReportPlatform.Entities.BPM_Business
{
    /// <summary>
    /// 绩效待办
    /// </summary>
    [SugarTable("Performance")]
    public class PerformanceEntity
    {
        /// <summary>
        /// 待办主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public int TodoEntryId { get; set; }

        /// <summary>
        /// 待办名称
        /// </summary>
        public string TodoEntryName { get; set; }

        /// <summary>
        /// 待办类型（0=绩效）
        /// </summary>
        public int CategoryId { get; set; }

        /// <summary>
        /// 待办类型名称
        /// </summary>
        public string CategoryLabel { get; set; }

        /// <summary>
        /// 审批人工号
        /// </summary>
        public string WorkNumber { get; set; }

        /// <summary>
        /// 审批人姓名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 考核人工号
        /// </summary>
        public string SubjectId { get; set; }

        /// <summary>
        /// 考核人姓名
        /// </summary>
        public string SubjectName { get; set; }

        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime? LastModifiedDateTime { get; set; }

        /// <summary>
        /// 待办链接
        /// </summary>
        public string LinkUrl { get; set; }

        /// <summary>
        /// 表单标题
        /// </summary>
        public string FormTitle { get; set; }

        /// <summary>
        /// 绩效表单ID
        /// </summary>
        public int FormDataId { get; set; }

        /// <summary>
        /// 绩效模板ID
        /// </summary>
        public int FormTemplateId { get; set; }

        /// <summary>
        /// 绩效模板名
        /// </summary>
        public string FormTemplateName { get; set; }

        /// <summary>
        /// 模版类型名
        /// </summary>
        public string TemplateTypeName { get; set; }

        /// <summary>
        /// 是否开启第三方链接
        /// </summary>
        public bool? IsOpenUrl { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// -1:已作废 1:未处理 4:已处理
        /// </summary>
        public int? ApproveResult { get; set; }

        /// <summary>
        /// 推送异常结果
        /// </summary>
        public string ApproveMessage { get; set; }

        /// <summary>
        /// 操作日期
        /// </summary>
        public DateTime? ApproveDate { get; set; }
    }
}
